package com.bit.springblogdemo.pojo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserLoginRequset {
    @NotNull(message = "用户名不能为空")
    @Length(max = 15,min = 2)
    private String userName;
    @NotNull(message = "密码不能为空")
    @Length(min = 5,max = 15,message = "密码长度为5到15")
    private String password;
}
